package com.guoqiang.oop;

public class Demo02 {
    public static void main(String[] args) {

        Car car = new Car();
        car.name = "奔驰";
        car.price = 135000;
        car.color = "黑色";

    }
}

class Car {
    // 属性，成员变量，字段(field)
    String name;
    double price;
    String color;
    String[] master;    //属性可以是基本数据类型，也可以是引用类型（对象，数组）
}
